Skip to content

为 Msg Buffer 的会话选择和模型使用 Option - #68

Merged
tiye merged 2 commits into
mainfrom
refine/msg-buffer-event-input
Nov 11, 2026
Merged

tiye merged 2 commits into
mainfrom
refine/msg-buffer-event-input

Conversation

@tiye

@tiye tiye commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

用户影响

新版继续读取已有的会话与模型选择记录。新版保存后,旧版仍能读取这两个字段。已用上一版源码验证选中会话和模型以及两个字段缺省的情况。

改动和风险

应用内部用 Option String 和 Option Tag 表示会话 ID 与模型。写入时在存档边界转回旧版接受的字符串、标签或 nil。新写入的存档外层是旧版同样支持的 Map,读取仍支持旧的 Store 结构。原质量门禁继续逐定义检查,仅将原有两处 nil 的预算移到编码器,并删除 updater 的三处预算。

验证

  • 10 项本地测试通过,包括旧值读取、保存往返和混合游标恢复。
  • 使用合成存档调用上一版的真实 decoder,验证已选和缺省两种情况。
  • 原远端检查将对最新提交重新执行。

@tiye
tiye merged commit 32ba27f into main Nov 11, 2026
1 check passed
@tiye
tiye deleted the refine/msg-buffer-event-input branch November 11, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant